/*
 * Copyright 2022-2029 heshuixing(https://gitee.com/heshuixing)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.mercury.ec.framework.air.core.channel.service;

import com.mercury.ec.framework.air.core.client.AirClient;
import com.mercury.ec.module.basic.mq.message.ChannelUpdateMessage;

import java.util.List;

/**
 * 机票渠道
 *
 * @author hesx
 */
public interface AirChannelService {

    /**
     * 清空指定渠道编号的缓存
     *
     * @param channelUpdateMessage 渠道变更消息
     */
    void clearAirClientCache(ChannelUpdateMessage channelUpdateMessage);

    /**
     * 获得机票客户端
     *
     * @param id 编号
     * @return 机票客户端
     */
    AirClient getAirClient(Long id);

    /**
     * 获得机票查询客户端列表
     *
     * @return 机票客户端列表
     */
    List<AirClient> getAirSearchClients();

    /**
     * 获得机票预订客户端列表
     *
     * @return
     */
    List<AirClient> getAirBookClients();
}
